In the first line print one letter à.
In the second line print two letters b.
In the third line print three letters c.
Input. There is no input data.
Output. Print the letters à, b and c as shown in the example.
Sample input |
Sample output |
|
a bb ccc |
elementary
problem - output
In this problem you must print one letter à, two letters b and
three letters c on separate lines.
Algorithm
realization
Print the answer using the puts function.
puts("a");
puts("bb");
puts("ccc");
The problem can also be solved using the printf function.
printf("a\n");
printf("bb\n");
printf("ccc\n");
Java realization
Print the answer using the System.out.println function.
import java.util.*;
public class Main
{
public static void main(String[] args)
{
System.out.println("a");
System.out.println("bb");
System.out.println("ccc");
}
}
Python realization
Print the answer using the print function.
print("a")
print("bb")
print("ccc")
C# realization
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleAppCSharp
{
class Program
{
static void Main(string[] args)
{
System.Console.WriteLine("a");
System.Console.WriteLine("bb");
System.Console.WriteLine("ccc");
}
}
}
Rust realization
fn main() {
println!("a");
println!("bb");
println!("ccc");
}